<%@page import="com.xnx3.j2ee.Global"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.xnx3.com/java_xnx3/xnx3_tld" prefix="x"%>
<jsp:include page="/wm/common/head.jsp">
	<jsp:param name="title" value="列表" />
</jsp:include>

<jsp:include page="/wm/common/list/formSearch_formStart.jsp"></jsp:include>
<jsp:include page="/wm/common/list/formSearch_input.jsp">
	<jsp:param name="iw_label" value="骑手名称" />
	<jsp:param name="iw_name" value="name" />
</jsp:include>

<input class="layui-btn iw_list_search_submit" type="submit" value="搜索" />
<div style="float: right; margin-right: 70px; margin-top: 5px;">
	<font size="5" color="red">账户余额(元)：${money/100}</font>
</div>
</form>
<div class="tabox" style="padding: 0 20px;">
	<table class="layui-table iw_table">
		<thead>
			<tr>
				<th style="text-align: center">骑手姓名</th>
				<th style="text-align: center">手机号</th>
				<th style="text-align: center">注册时间</th>
				<th style="text-align: center">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${list}" var="item">
				<tr>
					<td>${item.name}</td>
					<td><x:substring maxLength="25" text="${item.phone }"></x:substring>
					</td>
					<td><x:time linuxTime="${item.addtime }"
							format="yyyy-MM-dd HH:mm"></x:time></td>
					<td style="width: 150px;"><botton
							class="layui-btn layui-btn-sm"
							onclick="edit(${item.id}, '${item.name }');"
							style="margin-left: 3px;">设置金额</botton> <botton
							class="layui-btn layui-btn-sm"
							onclick="editItem(${item.id}, '${item.name }');"
							style="margin-left: 3px;">账户流水</botton></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<!-- 通用分页跳转 -->
<jsp:include page="/wm/common/page.jsp"></jsp:include>

<script type="text/javascript">

 //账户流水
function editItem(id, name){
	layer.open({
		type: 2, 
		title:'查看骑手&nbsp;[&nbsp;' + name + '&nbsp;]&nbsp;账户流水', 
		area: ['90%','90%'],
		shadeClose: true, //开启遮罩关闭
		content: '/wangge/moneyChangeRecord/list.do?user_id='+id
	});
} 
//设置金额
function edit(id, name){
	layer.open({
		type: 2, 
		title:'设置金额&nbsp;[&nbsp;' + name + '&nbsp;]', 
		area: ['350px', '300px'],
		shadeClose: true, //开启遮罩关闭
		content: 'edit.do?id='+id
	});
} 
</script>

<jsp:include page="/wm/common/foot.jsp"></jsp:include>